﻿<UserControl x:Class="ProgrammersCalculator.View.HashValidatorView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:MVVM="clr-namespace:ProgrammersCalculator.Common"
             AllowDrop="True"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="300">
    <Grid>
        <DockPanel>
            <Border DockPanel.Dock="Top"
                    Style="{DynamicResource styleContentArea}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <!-- HEADER -->
                    <Border Grid.Row="0"
                            Style="{DynamicResource styleContentAreaHeader}">
                        <Grid>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock FontSize="20"
                                           Padding="8"
                                           VerticalAlignment="Center">File Hash Generator</TextBlock>
                            </StackPanel>
                        </Grid>
                    </Border>

                    <!--CONTENT AREA-->
                    <Grid Grid.Row="1"
                          Margin="10"
                          VerticalAlignment="Top">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />

                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition></ColumnDefinition>
                            <ColumnDefinition></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Label Content="File Name"
                               Grid.Row="2" />
                        <Label Content="File Size"
                               Grid.Row="3" />
                        <Label Content="Check Sum Type"
                               Grid.Row="4" />
                        <Label Content="File checksum"
                               Grid.Row="5" />
                        <Label Content="Compare with:"
                               Grid.Row="6" />
                        <Label Content="Status:"
                               Grid.Row="7" />
                        <Label Content="{Binding FileName}"
                               Grid.Column="1"
                               Grid.Row="2" />
                        <Label Content="{Binding Path=FileSize}"
                               Grid.Column="1"
                               Grid.Row="3" />
                        <StackPanel Grid.Column="1"
                                    Orientation="Horizontal"
                                    Grid.Row="4">
                            <RadioButton x:Name="radioButton"
                                         Content="MD5"
                                         Command="{Binding CheckBoxChangedCommand}"
                                         IsChecked="True"
                                         CommandParameter="{Binding Content, ElementName=radioButton}"></RadioButton>
                            <RadioButton x:Name="radioButton1"
                                         Content="SHA1"
                                         Command="{Binding CheckBoxChangedCommand}"
                                         CommandParameter="{Binding Content, ElementName=radioButton1}"></RadioButton>
                            <RadioButton x:Name="radioButton2"
                                         Content="SHA256"
                                         Command="{Binding CheckBoxChangedCommand}"
                                         CommandParameter="{Binding Content, ElementName=radioButton2}"></RadioButton>
                        </StackPanel>

                        <TextBox Grid.Column="1"
                                 Grid.Row="5"
                                 Text="{Binding HashValue}" />
                        <TextBox Grid.Column="1"
                                 Grid.Row="6"
                                 TextWrapping="Wrap"
                                 Text="{Binding Path=CompareWith}" />
                        <Button Content="Browse"
                                Command="{Binding Path=PreviewDropCommand}"
                                Grid.Row="1"></Button>
                        <Border Grid.Row="7"
                                Grid.Column="1"
                                CornerRadius="10"
                                Background="{Binding Path=Status}">

                        </Border>

                    </Grid>
                </Grid>
            </Border>
        </DockPanel>


    </Grid>
</UserControl>
